package com.bcx.crm.spring.controller.thymeleaf.restful;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by ys on 2018/3/9.
 */
@Controller
@RequestMapping("/RestfulTest1")
public class RestfulTest1 {
    @GetMapping("/getPathParam/{name}")
    @ResponseBody
    public String getPathParam(@PathVariable("name")String name){
        return "hello:"+name;
    }
    @GetMapping("/getPathParam/{name1}")
    @ResponseBody
    public String getPathParamPost(@PathVariable("name1")String name){
        return "hello:"+name;
    }
}
